Using Textbooks to Solve Math Problems